page{
  background-color: $bg-color;
}

.chat-content{
  width: 100%;
  padding-bottom: calc(140rpx + env(safe-area-inset-bottom));
  .chat-list{
    width: 100%;
    .chat-date{
      display: flex;
      align-items: center;
      justify-content: center;
      .date{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 60rpx;
        text{
          font-size: 26rpx;
          color: $text-color-assist;
        }
      }
    }
    // 对方聊天
    .chat-left{
      display: flex;
      align-items: center;
      width: 100%;
      padding: 0 30rpx;
      margin: 10rpx 0;
      box-sizing: border-box;
      .pic{
        display: flex;
        align-items: center;
        height: auto;
        margin-right: 30rpx;
      }
      .content{
        position: relative;
        display: flex;
        align-items: center;
        max-width: 480rpx;
        // 消息操作
        .content-operation{
          position:absolute;
          left: 0;
          top: -110rpx;
          height: 100rpx;
          background-color: rgba(0,0,0,0.7);
          border-radius: 10rpx;
          .operation-item{
            display: flex;
            align-items: center;
            .item{
              display: flex;
              flex-direction: column;
              align-items: center;
              justify-content: center;
              width: 120rpx;
              height: 100rpx;
              image{
                width: 32rpx;
                height: 32rpx;
                margin-bottom: 4rpx;
              }
              text{
                font-size: 24rpx;
                color: #FFFFFF;
              }
            }
          }
        }
        // 文本消息
        .content-text{
          position: relative;
          display: flex;
          align-items: center;
          padding: 20rpx;
          background-color: $bg-assist-color;
          border-radius: 10rpx;
          text{
            font-size: 26rpx;
            color: $text-color;
          }
          .text-img{
            display: flex;
            image{
              width: 54rpx;
              height: 54rpx;
            }
          }
          .tag{
            position: absolute;
            left: -16rpx;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 10rpx 16rpx 10rpx 0;
            border-color: transparent $bg-assist-color transparent transparent;
            border-radius: 2px;
          }
        }
        // 图片
        .content-image{
          position: relative;
          .image-item{
            display: flex;
            align-items: center;
            image{
              width: 460rpx;
              border-radius: 10rpx;
            }
          }
        }
        // 语音
        .content-voice{
          position: relative;
          display: flex;
          align-items: center;
          min-width: 200rpx;
          height: 70rpx;
          padding: 0 30rpx;
          box-sizing: border-box;
          background-color: $bg-assist-color;
          border-radius: 10rpx;
          .time{
            display: flex;
            align-items: center;
            margin-left: 10rpx;
            text{
              font-size: 26rpx;
              color: $text-color;
            }
          }
          .icon{
            display: flex;
            align-items: center;
            image{
              width: 42rpx;
              height: 42rpx;
            }
          }
          .tag{
            position: absolute;
            left: -16rpx;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 10rpx 16rpx 10rpx 0;
            border-color: transparent $bg-assist-color transparent transparent;
            border-radius: 2px;
          }
        }
        // 红包
        .content-red{
          position: relative;
          width: 340rpx;
          height: 150rpx;
          padding: 0 20rpx;
          box-sizing: border-box;
          background: #f2914a;
          border-radius: 8rpx;
          .triangle{
            position: absolute;
            left: -12rpx;
            top: 60rpx;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 10rpx 16rpx 10rpx 0;
            border-color: transparent #f2914a transparent ;

          }
          .packet-info{
            display: flex;
            align-items: center;
            width: 100%;
            height: 100rpx;
            border-bottom: 1px solid #f9bc90;
            .icon{
              display: flex;
              align-items: center;
              margin-right: 10rpx;
              image{
                width: 56rpx;
                height: 56rpx;
              }
            }
            .title{
              display: flex;
              align-items: center;
              text{
                font-size: 24rpx;
                color: #ffe9d8;
              }
            }
          }
          .desc-info{
            display: flex;
            padding-top: 6rpx;
            width: 100%;
            height: 50rpx;
            .desc{
              display: flex;
              text{
                font-size: 24rpx;
                color: #ffe9d8;
              }
            }
          }
        }
      }
    }
    // 自己聊天
    .chat-right{
      display: flex;
      align-items: center;
      justify-content: flex-end;
      width: 100%;
      padding: 0 30rpx;
      margin: 10rpx 0;
      box-sizing: border-box;
      .pic{
        display: flex;
        align-items: center;
        height: auto;
        margin-left: 30rpx;
      }
      .content{
        position: relative;
        display: flex;
        align-items: center;
        max-width: 480rpx;
        // 消息操作
        .content-operation{
          position:absolute;
          right: 0;
          top: -110rpx;
          height: 100rpx;
          background-color: rgba(0,0,0,0.7);
          border-radius: 10rpx;
          .operation-item{
            display: flex;
            align-items: center;
            .item{
              display: flex;
              flex-direction: column;
              align-items: center;
              justify-content: center;
              width: 120rpx;
              height: 100rpx;
              image{
                width: 32rpx;
                height: 32rpx;
                margin-bottom: 4rpx;
              }
              text{
                font-size: 24rpx;
                color: #FFFFFF;
              }
            }
          }
        }
        // 文本消息
        .content-text{
          position: relative;
          display: flex;
          align-items: center;
          padding: 20rpx;
          background-color: $base-color;
          border-radius: 10rpx;
          text{
            font-size: 26rpx;
            color: #ffffff;
          }
          .text-img{
            display: flex;
            image{
              width: 54rpx;
              height: 54rpx;
            }
          }
          .tag{
            position: absolute;
            right: -16rpx;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 10rpx 0 10rpx 16rpx;
            border-color: transparent transparent transparent $base-color;
          }
        }
        // 图片
        .content-image{
          position: relative;
          .image-item{
            display: flex;
            align-items: center;
            image{
              width: 460rpx;
              border-radius: 10rpx;
            }
          }
        }
        // 语音
        .content-voice{
          position: relative;
          display: flex;
          align-items: center;
          justify-content: flex-end;
          min-width: 200rpx;
          height: 70rpx;
          padding: 0 30rpx;
          box-sizing: border-box;
          background-color: $base-color;
          border-radius: 10rpx;
          .time{
            display: flex;
            align-items: center;
            margin-right: 10rpx;
            text{
              font-size: 26rpx;
              color: #FFFFFF;
            }
          }
          .icon{
            display: flex;
            align-items: center;
            image{
              width: 42rpx;
              height: 42rpx;
            }
          }
          .tag{
            position: absolute;
            right: -16rpx;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 10rpx 0 10rpx 16rpx;
            border-color: transparent transparent transparent $base-color;
          }
        }
      }
      .content-red{
        position: relative;
        width: 340rpx;
        height: 150rpx;
        padding: 0 20rpx;
        box-sizing: border-box;
        background: #f2914a;
        border-radius: 8rpx;
        .triangle{
          position: absolute;
          right: -12rpx;
          top: 60rpx;
          width: 0;
          height: 0;
          border-style: solid;
          border-width: 10rpx 0 10rpx 16rpx;
          border-color: transparent transparent transparent #f2914a;

        }
        .packet-info{
          display: flex;
          align-items: center;
          width: 100%;
          height: 100rpx;
          border-bottom: 1px solid #f9bc90;
          .icon{
            display: flex;
            align-items: center;
            margin-right: 10rpx;
            image{
              width: 56rpx;
              height: 56rpx;
            }
          }
          .title{
            display: flex;
            align-items: center;
            text{
              font-size: 24rpx;
              color: #ffe9d8;
            }
          }
        }
        .desc-info{
          display: flex;
          padding-top: 6rpx;
          width: 100%;
          height: 50rpx;
          .desc{
            display: flex;
            text{
              font-size: 24rpx;
              color: #ffe9d8;
            }
          }
        }
      }
      .send-fail{
        display: flex;
        align-items: center;
        margin-right: 10rpx;
        .fail{
          display: flex;
          align-items: center;
          image{
            width: 42rpx;
            height: 42rpx;
          }
        }
      }
    }
    .loading{
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.2);
      border-radius: 10rpx;
      .load{
        animation: loadAm 1s linear infinite;
      }
      @keyframes loadAm {
        0%{
          transform: rotate(0deg);
        }
        100%{
          transform: rotate(360deg);
        }
      }
    }
  }
}
/*聊天输入*/
.chat-input{
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  min-height: 120rpx;
  background-color: $bg-assist-color;
  padding-bottom: env(safe-area-inset-bottom);
  .input-info{
    display: flex;
    align-items: center;
    width: 100%;
    height: 120rpx;
    padding: 0 30rpx;
    box-sizing: border-box;
    .voice{
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 20rpx;
      image{
        width: 48rpx;
        height: 48rpx;
      }
    }
    .input-text{
      flex: 1;
      width: 0;
      height: 70rpx;
      padding: 0 20rpx;
      box-sizing: border-box;
      background-color: $bg-color;
      border-radius: 10rpx;
      input{
        width: 100%;
        height: 100%;
        font-size: 28rpx;
        color: $text-color;
      }
    }
    .extend{
      display: flex;
      align-items: center;
      justify-content: center;
      margin-left: 10rpx;
      .icon{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80rpx;
        image{
          width: 48rpx;
          height: 48rpx;
        }
      }
      .send-btn{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100rpx;
        height: 60rpx;
        background-color: $base-color;
        border-radius: 10rpx;
        text{
          font-size: 28rpx;
          color: #FFFFFF;
        }
      }
    }
  }
  // 表情
  .emoji-info{
    width: 100%;
    height: 600rpx;
    .emoji-tab{
      display: flex;
      align-items: center;
      width: 100%;
      height: 100rpx;
      padding: 0 20rpx;
      box-sizing: border-box;
      background-color: $bg-assist-color;
      .tab{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100rpx;
        height: 100rpx;
        background-color: transparent;
        border-radius: 20rpx;
        image{
          width: 48rpx;
          height: 48rpx;
        }
      }
      .active{
        background-color: $bg-color;
      }
    }
    .emoji-list{
      width: 100%;
      height: 500rpx;
      padding: 0 20rpx;
      box-sizing: border-box;
      overflow-y: auto;
      overflow-x: hidden;
      .list{
        float: left;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 16.666%;
        height: 100rpx;
        image{
          width: 56rpx;
          height: 56rpx;
        }
      }
    }
  }
  // 扩展
  .extend-info{
    width: 100%;
    height: 600rpx;
    .extend-item{
      display: flex;
      flex-wrap: wrap;
      width: 100%;
      padding: 0 20rpx;
      box-sizing: border-box;
      .item{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 25%;
        height: 200rpx;
        .icon{
          display: flex;
          align-items: center;
          justify-content: center;
          width: 120rpx;
          height: 120rpx;
          margin-bottom: 16rpx;
          background-color: $bg-color;
          border-radius: 10rpx;
          image{
           width: 60rpx;
            height: 60rpx;
          }
        }
        text{
          font-size: 28rpx;
          color: $text-color;
        }
      }
    }
  }
  // 语音
  .voice-info{
    width: 100%;
    height: 600rpx;
    .voice-content{
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      .voice-sec{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 60rpx;
        .sec{
          display: flex;
          align-items: center;
          text{
            font-size: 34rpx;
            font-weight: bold;
            color: $text-color;
          }
        }
      }
      .voice-btn{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 200rpx;
        .btn{
          position: relative;
          display: flex;
          align-items: center;
          justify-content: center;
          width: 100%;
          height: 200rpx;
          .btn-bg{
            width: 150rpx;
            height: 150rpx;
            background-color: rgba(40,186,255,0.3);
            border-radius: 100%;
          }
          .btn-an{
            animation: voice 0.5s linear infinite;
          }
          .btn-am{
            position: absolute;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 120rpx;
            height: 120rpx;
            background-color: #ffffff;
            border-radius: 100%;
            .rot{
              width: 40rpx;
              height: 40rpx;
              background-color: $base-color;
              border-radius: 100%;
            }
          }
          .btn-start{
            position: absolute;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 120rpx;
            height: 120rpx;
            background-color: $base-color;
            border-radius: 100%;
          }
          @keyframes voice {
            0%{
              transform: scale(1);
            }
            50%{
              transform: scale(1.1);
            }
            100%{
              transform: scale(1);
            }
          }
        }
        .btn-finish{
          display: flex;
          align-items: center;
          justify-content: center;
          width: 100%;
          height: 200rpx;
          .del{
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100rpx;
            height: 80rpx;
            background-color: $bg-color;
            border-radius: 60rpx;
            margin-right: 40rpx;
            image{
              width: 48rpx;
              height: 48rpx;
            }
          }
          .btn-wc{
            display: flex;
            align-items: center;
            justify-content: center;
            width: 120rpx;
            height: 120rpx;
            background-color: $base-color;
            border-radius: 100%;
            image{
              width: 58rpx;
              height: 58rpx;
            }
          }
          .send{
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100rpx;
            height: 80rpx;
            background-color: $base-color;
            border-radius: 60rpx;
            margin-left: 40rpx;
            image{
              width: 48rpx;
              height: 48rpx;
            }
          }
        }
      }
      .voice-hint{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text{
          font-size: 28rpx;
          color: $text-color-assist;
        }
      }
    }
  }
}
/*输入样式*/
#editor{
  width: 100%;
  height: 60rpx;
  text-align: center;
}
.ql-container{
  display: flex;
  align-items: center;
  max-width: 470rpx;
  min-height: 60rpx !important;
  margin-top: 16rpx;
  font-size: 26rpx !important;
  .input-img{
    display: flex;
    align-items: center;
  }
}
